package com.zbkj.service.service.merchant;

import com.zbkj.dal.base.enums.merchant.MerOrderApptType;
import com.zbkj.dal.entity.merchant.MerchantOrderAppointment;
import com.zbkj.service.model.dto.order.OrderMerAppointmentDTO;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

public interface MerchantOrderAppointmentService {

    OrderMerAppointmentDTO createMerchantOrderAppointment(String orderNo, Integer merId, Integer uid, LocalDate apptDate, LocalTime start, LocalTime end, MerOrderApptType apptType);

    OrderMerAppointmentDTO createMerchantOrderAppointmentWithLongTime(String orderNo, Integer merId, Integer uid, MerOrderApptType apptType);

    MerchantOrderAppointment findAppointmentByOrderId(String orderId, MerOrderApptType... apptType);

    void cancelMerchantOrderAppointment(String orderNo, MerOrderApptType apptType);

    void modifyMerchantOrderAppointmentTime(String orderNo, MerOrderApptType apptType, LocalDate apptDate, LocalTime apptStart, LocalTime apptEnd);
}
